<script lang="ts" setup>
import ArticleEdit from '@/components/ArticleEdit.vue'
import { onMounted, ref } from 'vue'

const articleEditRef = ref()
onMounted(() => {
  articleEditRef.value.open()
})
</script>

<template>
  <el-button type="primary" @click="articleEditRef.open()">打开抽屉</el-button>
  <ArticleEdit ref="articleEditRef"></ArticleEdit>
</template>

<style lang="scss" scoped></style>
